﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Stats.Objects
{
    /// <summary>
    /// This objects contains the stats about user savings using our TripLOA system.
    /// </summary>
    public class UserSavings
    {
        /// <summary>
        /// The user ID
        /// </summary>
        public int UserID { get; set; }
        
        /// <summary>
        /// The fuel saved by the user using TripLOA
        /// </summary>
        public double UserFuelSaved { get; set;}
        
        /// <summary>
        /// The emissions saved by the user using TripLOA
        /// </summary>
        public double UserEmissionsSaved { get; set; }
        
        /// <summary>
        /// The money saved by the user using TripLOA
        /// </summary>
        public double UserMoneySaved { get; set; }

        /// <summary>
        /// The constructor for the UserSavings object
        /// </summary>
        /// <param name="user_ID">The ID of the user</param>
        /// <param name="user_FuelSaved">The fuel saved by the user using TripLOA</param>
        /// <param name="user_EmissionsSaved">The emissions saved by the user using TripLOA</param>
        /// <param name="user_MoneySaved">The money saved by the user using TripLOA</param>
        public UserSavings (int user_ID, double user_FuelSaved, double user_EmissionsSaved, double user_MoneySaved)
        {
            UserID = user_ID;
            UserFuelSaved = user_FuelSaved;
            UserEmissionsSaved = user_EmissionsSaved;
            UserMoneySaved = user_MoneySaved; 
        }
        

    }
}
